﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAL;
using Utils;

namespace BLL
{
  public  class CourseDtlBiz
  {
      string tableName = "Admin_Train_CourseDtl";
      CourseDtlDao courseDtlDao = new CourseDtlDao();
      public bool Insert(SortedDictionary<string, string> sdList)
      {
          return courseDtlDao.Insert(tableName, sdList);
      }


      public bool Update(SortedDictionary<string, string> sdList)
      {
          return courseDtlDao.Update(tableName, sdList);
      }



      #region Course
      public bool DeleteOneInfo(string dtlID)
      {
          return courseDtlDao.DeleteOneInfo(dtlID);
      }
      //获取一条记录
      public DataTable GetOneInfo(string dtlID)
      {
          return courseDtlDao.GetOneInfo(dtlID);
      }

      //列表
      public DataTable GetLists(string serWord)
      {
          return courseDtlDao.GetLists(serWord);
          //if (dataSet.Tables[0].Rows.Count <= 0)
          //{
          //    for (int i = 0; i < 5; i++)
          //    {
          //        DataRow dr = dataSet.Tables[0].NewRow();
          //        dataSet.Tables[0].Rows.Add(dr);
          //    }
          //}

      }
      #endregion
    }
}
